import request from "@/util/request";

export const articleList = (current, size) => request({
  url: '/enjooo-cms/article/pages',
  params: {
    current,
    size
  }
});

// 店员新增档案
export const newShopchives = (record) => request({
  url: '/qichong-record/api/animal/submit',
  method: 'post',
  data: record
})

// 店员修改故事
export const newShopstory = (description,id) => request({
  url: '/qichong-record/api/animal/description',
  method: 'post',
  data: {
    description,
    id
  }
})

// 保存标签
export const newlabel = (name) => request({
  url: '/qichong-record/traitlabel/submit',
  method: 'post',
  data: {
    name
  }
})

// 删除标签
export const removelabel = (ids) => request({
  url: '/qichong-record/traitlabel/remove',
  method: 'post',
  params: {
    ids
  }
})

// 修改档案
export const updatechives = (record) => request({
  url: '/qichong-record/record/update',
  method: 'post',
  data: record
})

// 删除
export const removechives = (ids) => request({
  url: '/qichong-record/api/animal/remove',
  method: 'post',
  params: {
    ids
  }
})

// 新增行为记录
export const newbehavior = (everydayRecord) => request({
  url: '/qichong-record/everydayrecord/save',
  method: 'post',
  data: everydayRecord
})

// 新增日常图片
export const newdaily = (recordExt) => request({
  url: '/qichong-record/everydayrecord/submit-ext',
  method: 'post',
  data: recordExt
})

// 商铺id
export const newShop = (tenantShop) => request({
  url: '/blade-system/tenantShop/list',
  method: 'get',
  data: tenantShop
})

// 查询店内所有的种类
export const newspecies = (shopId) => request({
  url: '/qichong-record/record/getAllCategoryInShop',
  method: 'get',
  params: {
    shopId
  }
})

// 查询店内所有的种类的分类
export const newfilelist = (shopId) => request({
  url: '/qichong-record/record/getAllRecordByCategory',
  method: 'get',
  params: shopId
})

// 根据宠物id 获取日常行为记录
export const gainbehavior = (recordId) => request({
  url: '/qichong-record/everydayrecord/detailNowByRecordId',
  method: 'get',
  params: {
    recordId
  }
})

// 根据宠物id 获取日常图片
export const gaindaily = (recordId) => request({
  url: '/qichong-record/everydayrecord/ext-list',
  method: 'get',
  params: {
    recordId
  }
})

// 根据宠物id 获取日常图片
export const categoryDetail = (id) => request({
  url: '/qichong-recognition/category/detail',
  method: 'get',
  params: {
    id
  }
})
